﻿using System;
using System.Data;


public class CustomersBO
{
	public CustomersBO()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    private string _customerId ;
	private string _accountId;
	private string _addressId;
    private int _imageSize;
    private string  _imageName ;
	private string _imagePath;
    private string _getImagePath;



    public string GetImagePath
    {
        get { return _getImagePath; }
        set { _getImagePath = value; }
    }
    public string ImagePath
    {
        get { return _imagePath; }
        set { _imagePath = value; }
    }

    
    public int ImageSize
    {
        get { return _imageSize; }
        set { _imageSize = value; }
    }

    public string ImageName
    {
        get { return _imageName; }
        set { _imageName = value; }
    }

    public string AddressId
    {
        get { return _addressId; }
        set { _addressId = value; }
    }

    public string AccountId
    {
        get { return _accountId; }
        set { _accountId = value; }
    }

    public string CustomerId
    {
        get { return _customerId; }
        set { _customerId = value; }
    }
    private string m_CustomerName;

    public string CustomerName
    {
        get { return m_CustomerName; }
        set { m_CustomerName = value; }
    }

	CustomersDAL _customerDal = new CustomersDAL();

	public int InsertCutomer()
		{

		try
			{

			return _customerDal.CreateCustomers(this);



			}
		catch (Exception ex)
			{
			throw ex;


			}
		
		}

	public DataTable AddressFillDropDown()
		{


		try
			{

			return _customerDal.AddressFillDropDown();

			}

		catch
			{

			throw;

			}

		}

	public DataTable AccountFillDropDown()
		{


		try
			{

			return _customerDal.AccountFillDropDown();

			}

		catch
			{

			throw;

			}

		}

	public int UpdateCustomer()
		{


		try
			{

			return _customerDal.UpdateCustomer(this);

			}

		catch
			{

			throw;

			}

		}

	public DataTable CustomerDisplay()
		{
		try
			{

			return _customerDal.Load();

			}

		catch
			{

			throw;

			}

		}

	public int DeleteCustomer()
		{



		try
			{

			return _customerDal.DeleteCustomer(this);

			}

		catch
			{

			throw;

			}

		}
	public int DeleteAccount()
		{



		try
			{

			return _customerDal.DeleteAccount(this);

			}

		catch
			{

			throw;

			}

		}
	public int photo()
		{



		try
			{

			return _customerDal.CreateImage(this);

			}

		catch
			{

			throw;

			}

		}

	public string GetPic()
		{



		try
			{

			return _customerDal.GetImagePath(this);

			}

		catch
			{

			throw;

			}

		}
}